//
//  ZZUserListCell.h
//  QQplayground
//
//  Created by zhangxy on 2018/8/9.
//  Copyright © 2018年 zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,ZZUserItemClickType) {
    ZZUserItemClickAttent = 0, // 关注，取消关注
    
};

@protocol ZZUserListCellDelegate<NSObject>

-(void)onItemClick:(User *)user type:(ZZUserItemClickType) type;

@end

@interface ZZUserListCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIImageView *imgAvatar;
@property (weak, nonatomic) IBOutlet UILabel *labName;
@property (weak, nonatomic) IBOutlet UILabel *labTime;
@property (weak, nonatomic) IBOutlet UILabel *labDesc;

@property (weak, nonatomic) IBOutlet UIButton *btnLevel;
@property (weak, nonatomic) IBOutlet UIButton *btnVip;

@property (weak, nonatomic) IBOutlet UIButton *btnAttent;

@property (strong ,nonatomic) id<ZZUserListCellDelegate> delegate;
@property (strong ,nonatomic) User *tempUser;

-(void)dataToView:(User *) model;

@end
